package com.example.hydrogengenerator.base

import androidx.databinding.ViewDataBinding
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder

abstract class BaseDataBindAdapter<T, VB : ViewDataBinding>(layoutId: Int) :
    BaseQuickAdapter<T, BaseDataBindingHolder<VB>>(layoutId, arrayListOf()) {

    override fun convert(holder: BaseDataBindingHolder<VB>, item: T) {
//        holder.dataBinding?.setVariable(BR.data, item)
        holder.dataBinding?.executePendingBindings()
    }

}